package com.ldx.function;

import java.util.function.Supplier;

/**
 * @author lidexin
 * @create 2021-10-16 21:29
 */
public class Demo04 {
    public static void main(String[] args) {
//        Supplier supplier = new Supplier<Integer>() {
//            @Override
//            public Integer get() {
//                System.out.println("get()");
//                return 1024;
//            }
//        };
        Supplier<Integer> supplier = () -> { return 1024;};
        System.out.println(supplier.get());
    }
}
